<template>
  <div>
    我是子组件 -- {{ value }} <button @click="$emit('input', '小黄车')">换车</button><br>
    {{ money }} <button @click="$emit('update:money', 10)">花钱</button>
    <br>
    {{ baby }}  <button @click="$emit('update:baby', '999')">换钱</button>
  </div>
</template>

<script>
export default {
  props: {
    value: {
      type: String,
      default: ''
    },
    money: {
      type: Number,
      default: 0
    },
    baby: {
      type: String,
      default: ''
    }
  }
}
</script>

<style>

</style>
